CXX=g++
# SDK_PATH=/cuda_sdk
SDK_PATH=$(HOME)/NVIDIA_GPU_Computing_SDK
CUDA_INSTALL_PATH=/usr/local/cuda
CFLAGS= -I. -I$(CUDA_INSTALL_PATH)/include -I$(SDK_PATH)/C/common/inc/ `pkg-config --cflags opencv`
LDFLAGS= -L$(CUDA_INSTALL_PATH)/lib64 -L$(SDK_PATH)/C/lib -lcutil_x86_64 -lcudart `pkg-config --libs opencv`

all:
	$(CXX) $(CFLAGS) -c test_case.cpp -o main.o
	nvcc -g $(CFLAGS)  $(CUDAFLAGS) -c wrappers.cu -o kernel_gpu.o
	$(CXX)  main.o kernel_gpu.o -o my_ccl $(LDFLAGS)

clean:
	rm -f *.o my_ccl

